from DataManagement.models import CodeModel
from django.db import models


class Mzdm(CodeModel):
    value = models.CharField(primary_key=True, max_length=10)
    label = models.CharField(max_length=100, blank=True, null=True)
    letter = models.CharField(max_length=2, blank=True, null=True)
    value1 = models.CharField(max_length=10, blank=True, null=True)
    label1 = models.CharField(max_length=100, blank=True, null=True)
    remarks = models.CharField(max_length=100, blank=True, null=True)
    create_by = models.CharField(max_length=255, blank=True, null=True)
    create_date = models.CharField(max_length=255, blank=True, null=True)
    update_by = models.CharField(max_length=255, blank=True, null=True)
    update_date = models.CharField(max_length=255, blank=True, null=True)
    del_flag = models.CharField(max_length=255, blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'mzdm'
        verbose_name = '民族代码表'
        verbose_name_plural = '民族代码表'
